package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 预充值项目
 * @Author: yfkj
 * @Date:   2023-03-07
 * @Version: V1.0
 */
@Data
@TableName("caishui_pre_items")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_pre_items对象", description="预充值项目")
public class CaishuiPreItems implements Serializable {
    private static final long serialVersionUID = 1L;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**税源地ID*/
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

	/**商户ID*/
    @ApiModelProperty(value = "商户ID")
    private String businessId;

	/**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    /**用户ID*/
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**预充值类型：1-短信通知，2-实名认证，3-电子签约，4、OCR验证*/
	@Excel(name = "预充值类型", width = 15, dicCode = "caishui_pre_type")
    @ApiModelProperty(value = "预充值类型")
    @Dict(dicCode = "caishui_pre_type")
    private Integer preType;

    /**手机号码*/
    @ApiModelProperty(value = "手机号码")
    private String prePhone;

    /**真实姓名*/
    @ApiModelProperty(value = "真实姓名")
    private String preRealname;

    /**身份证*/
    @ApiModelProperty(value = "身份证")
    private String preIdCard;

	/**条数*/
	@Excel(name = "条数", width = 15)
    @ApiModelProperty(value = "条数")
    private Integer preNum;

	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private Double prePrice;

	/**总价*/
	@Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private Double preAmount;

	/**状态：1-正常，0-作废*/
    @ApiModelProperty(value = "状态")
    private Integer preStatus;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String preRemarks;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**创建日期*/
    @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;



    /**中台用户手机号*/
    @TableField(exist = false)
    private String mphone;

    /**中台用户名称*/
    @TableField(exist = false)
    private String mrealname;

    /**中台用户总价*/
    @TableField(exist = false)
    private Double mamount;

}
